﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AwesomeEnginePC.Networking.Sockets
{
    [Serializable]
    public abstract class BaseBrodcastMessage
    {
        /// <summary>
        /// Gets or sets if this message is sent from the server
        /// </summary>
        public bool IsFromServer { get; set; }

        /// <summary>
        /// Gets or sets the client id this message **is about**. This number does not represent
        /// the client that is sending/receiving the message.
        /// </summary>
        public int ClientID { get; set; }

        /// <summary>
        /// Gets or sets the exception that was generated.
        /// </summary>
        public Exception MessageException { get; set; }

        public BaseBrodcastMessage()
        {
            ClientID = -1;
        }
    }
}
